package cc.minos.utils
{
	
	/**
	 * ...
	 * @author Minos
	 */
	public class ColorUtil
	{
		
		/**
		 *
		 * @param	number
		 * @param	lenght
		 * @param	showHexDenotation
		 * @return
		 */
		public static function numberToHex( number:uint , lenght:uint = 1 , showHexDenotation:Boolean = true ):String
		{
			var s:String = number.toString( 16 ).toUpperCase();
			while ( lenght > s.length )
			{
				s = "0" + s;
			}
			if ( showHexDenotation )
				s = "0x" + s;
			return s;
		}
	
	}

}